public class demo4 {
    public static void main(String[] args) {
        Thread thread = new Thread(()-> {
                while(true) {
                    System.out.println("正在运行 run 方法");
                }
        });

        thread.start();

        while (true){
            System.out.println("正在运行 main 方法");
        }
    }
}
